import request from '@/utils/request'

const api = {
  bind: '/api/checker/add_card',
  unbind: '/api/checker/delete_card',
  cardStatus: '/api/checker/getCardStatus'
}

export function bind (params = {}) {
  return request({
    url: api.bind,
    method: 'post',
    params
  })
}

export function unbind (params = {}) {
  return request({
    url: api.unbind,
    method: 'post',
    params
  })
}

export function cardStatus (params = {}) {
  return request({
    url: api.cardStatus,
    method: 'post',
    params
  })
}

